using Domain.Base;
using DtoFw.Enum;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace Domain.Entity {

    [SugarTable("notification")]
    [DB(EnumDatabase.Mysql, Cache = false)]
	public partial class NotificationEntity : BaseEntity {

		
		/// <summary>
		/// 区划编号
		/// </summary>
		[SugarColumn(ColumnName = "ComNo")]
		public string ComNo { get; set; } = string.Empty;

		[SugarColumn(ColumnName = "Describe")]
		public string Describe { get; set; } = string.Empty;

		/// <summary>
		/// 处理人
		/// </summary>
		[SugarColumn(ColumnName = "HandlePerson")]
		public string HandlePerson { get; set; } = string.Empty;

		/// <summary>
		/// 处理/恢复时间
		/// </summary>
		[SugarColumn(ColumnName = "HandleTime")]
		public DateTime? HandleTime { get; set; }

		/// <summary>
		/// 会造成什么影响 根据类型都字典
		/// </summary>
		[SugarColumn(ColumnName = "Influence")]
		public string Influence { get; set; } = string.Empty;

		/// <summary>
		/// 是否已处理/是否已恢复 0 已处理 1未处理
		/// </summary>
		[SugarColumn(ColumnName = "IsHandle")]
		public int? IsHandle { get; set; }

		/// <summary>
		/// 0为历史数据 1为新数据
		/// </summary>
		[SugarColumn(ColumnName = "IsHistory")]
		public int? IsHistory { get; set; }

		/// <summary>
		/// 0 已忽略  1未忽略
		/// </summary>
		[SugarColumn(ColumnName = "IsIgnore")]
		public int? IsIgnore { get; set; }

		/// <summary>
		/// 1 红 2 黄 3 绿
		/// </summary>
		[SugarColumn(ColumnName = "Level")]
		public int? Level { get; set; }

		/// <summary>
		/// 1物品未绑定，2未及时入库，3 未及时回库，4 异常出库，5 温度，6湿度，7烟感，8水侵，9空气质量，10保存超期，11 库容爆仓，12 审核
		/// </summary>
		[SugarColumn(ColumnName = "Mold")]
		public int? Mold { get; set; }

		[SugarColumn(ColumnName = "NoticeTime")]
		public DateTime? NoticeTime { get; set; }

		/// <summary>
		/// 单位ID
		/// </summary>
		[SugarColumn(ColumnName = "OrganId")]
		public long OrganId { get; set; }

		/// <summary>
		/// 单位名称
		/// </summary>
		[SugarColumn(ColumnName = "OrganName")]
		public string OrganName { get; set; } = string.Empty;

		/// <summary>
		/// 处理方式
		/// </summary>
		[SugarColumn(ColumnName = "TreatmentMethod")]
		public string TreatmentMethod { get; set; } = string.Empty;

		/// <summary>
		/// 物品ID、箱子ID、环境ID
		/// </summary>
		[SugarColumn(ColumnName = "CheckId")]
		public long? CheckId { get; set; }

		/// <summary>
		/// 回库时间、登记时间、保存超期时间
		/// </summary>
		[SugarColumn(ColumnName = "CheckTime")]
		public DateTime? CheckTime { get; set; }

		/// <summary>
		/// 备注 0-正常 1-处置意见
		/// </summary>
		[SugarColumn(ColumnName = "Remark")]
		public string Remark { get; set; }
	}

}
